from flask import Flask,request,render_template
import config
from exts import db, mail
from user import bp

app = Flask(__name__)

app.config.from_object(config)
db.init_app(app)
mail.init_app(app)
app.register_blueprint(bp)

with app.app_context():
    db.create_all()
@app.route('/')
def index():
    return render_template("login.html")

if __name__ == '__main__':
    app.run(debug=True)